﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Time.DB
{

    /// <summary>
    /// 数据库连接配置信息
    /// </summary>
   public class t_dbLink
    {
        /// <summary>
        ///  
        /// <summary>
        public virtual Guid ID { get; set; }

        /// <summary>
        ///  序列号
        /// <summary>
        public virtual int Item_ID { get; set; }

        /// <summary>
        ///  数据库类型
        /// <summary>
        public virtual string DBType { get; set; }

        /// <summary>
        ///  用户名
        /// <summary>
        public virtual string DBUser { get; set; }

        /// <summary>
        ///  密码
        /// <summary>
        public virtual string DBPwd { get; set; }

        /// <summary>
        ///  数据库地址
        /// <summary>
        public virtual string DBAddress { get; set; }

        /// <summary>
        ///  业务类型
        /// <summary>
        public virtual string BSType { get; set; }

        /// <summary>
        ///  数据库名
        /// <summary>
        public virtual string DBName { get; set; }

        /// <summary>
        ///  
        /// <summary>
        public virtual string Corp_ID { get; set; }

    }
    /// <summary>
    /// 数据库类型枚举
    /// </summary>
    public enum DbProviderType:byte 
   {
       SqlServer,
       MySql,
       SQLite,
       Oracle,
       ODBC,
       OleDb,
       Firebird,
       PostgreSql,
       DB2,
       Informix,
       SqlServerCe
   }
    
}
